.PHONY: all

CC          := arm-linux-gnueabi-g++

CFLAGS      := -I../include
CFLAGS      += -I/home/evan/Qt/include
CFLAGS      += -I/home/evan/qrencode-4.0.0
CFLAGS      += -I../include/iot-sdk
CFLAGS      += -I../include/mbedtls

LDFLAGS     := -L../lib
LDFLAGS     += -L/home/evan/dragonboard/buildroot/target/dragonboard/rootfs/usr/lib
LDFLAGS     += -L/home/evan/dragonboard/buildroot/target/dragonboard/Trolltech/lib/
LDFLAGS     += -L/home/evan/qrencode-4.0.0/.libs
LDFLAGS     += -liot_sdk -liot_platform
LDFLAGS     += -Bstatic -liot_tls
#LDFLAGS     += -lgcov -lpthread -lrt
LDFLAGS     += -lgcov -lpthread -lrt -lQtCore -lQtGui -lQtNetwork -lts -lqrencode

all ::
	$(CC) $(CFLAGS) -o machineRun mqtt-szxc.c rs232.c cJSON.c mainui.cpp moc_mainui.cpp ftp.cpp $(LDFLAGS)

clean ::
	rm -vf machineRun

